import request from "@/utils/request";
//查询角色列表
export const queryPageApi = (data) => request.get(`/roles`, { params: data });

//添加角色
export const addApi = (data) => request.post(`/roles`, data);
//查询回显角色信息
export const queryByIdApi = (id) => request.get(`/roles/${id}`);
//修改角色信息
export const updateApi = (data) => request.put(`/roles`, data);
//删除角色信息
export const deleteApi = (id) => request.delete(`/roles/${id}`);
